#include <iostream>
#include "connection.h"
#include "connpool.h"

using namespace std;

int main()
{
	auto pool = ConnectionPool::getConnectionPool();
	auto conn = pool->getConnection();
	if (conn)
	{
		cout << "get connection success" << endl;
		auto res = conn->query("select * from file_mapping");
		cout << "query success " << res->field_count << endl;
	}
	else
	{
		cout << "get connection failed" << endl;
	}


	return 0;
}
